<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	Integer pageSize = (Integer)request.getAttribute("pageSize");
	Integer pageNum = (Integer)request.getAttribute("pageNum");
    Long total = (Long)request.getAttribute("total");
	String searchType = (String)request.getAttribute("searchType")==null?"1":(String)request.getAttribute("searchType");
	String searchValue = (String)request.getAttribute("searchValue")==null?"":(String)request.getAttribute("searchValue");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<%@include file="/public/head.jspf"%>
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="${dailySupport}/css/public/paging/paging.css">
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="js/jquery.min.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="js/bootstrap.min.js"></script>
<script src="${dailySupport}/js/public/paging/page.js"></script>
<script src="${dailySupport}/js/com/sunny/core/person/person_info_list.js"></script>
<script type="text/javascript">
	$(function() {
		$("#sel").click(function() {
			var com = $("#con").val();
			if ("1" == com) {
				$("#context").attr("name", "sname");
			} else if ("2" == com) {
				$("#context").attr("name", "sex");
			}
			$("#con_from").submit();
		});
	});
	
</script>

</head>

<body>
	<div style="padding:0px; margin:0px;">
		<ul class="breadcrumb" style="  margin:0px; ">
			<li><a href="#">系统管理</a></li>
			<li>人员管理</li>
		</ul>
	</div>
	<div class="row alert alert-info" style="margin:0px; padding:3px;">
		<form action="role.do?likefind" method="post" class="form-horizontal"
			id="con_from">
			<div class="col-sm-1">条件:</div>
			<div class="col-sm-3">
				<select id="con" class="form-control  input-sm">
					<option value="1">姓名</option>
					<option value="2">性别</option>
				</select>
			</div>
			<div class="col-sm-3">
				<input type="text" id="context" name=""
					class="form-control input-sm" />
			</div>
			<input type="button" id="sel" class="btn btn-danger" value="查询" /> <input
				type="button" class="btn btn-success" value="添加"
				onClick="javascript:window.location='${dailySupport}/person/toAdd.do'" />
		</form>
	</div>
	<div class="row" style="padding:15px; padding-top:0px; ">
		<table class="table  table-condensed table-striped">
			<tr>
				<th>员工编号</th>
				<th>员工姓名</th>
				<th>员工性别</th>
				<th>员工年龄</th>
				<th>电话号码</th>
				<th>QQ</th>
				<th>入职时间</th>
				<th>操作</th>
			</tr>
			<c:forEach items="${rsList}" var="rs">
				<tr>
					<td>${rs.sid}</td>
					<td>${rs.name}</td>
					<td>${rs.sex}</td>
					<td>${rs.age}</td>
					<td>${rs.phone}</td>
					<td>${rs.qq}</td>
					<td>${rs.hiredate}</td>
					<td><a href="role.do?byids&id=${rs.sid}">角色变更</a></td>
				</tr>
			</c:forEach>
		</table>
	</div>

</body>
</html>
